package com.java2404.micro.common.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@ApiModel("商品")
@TableName("t_goods")
public class Goods {
    @ApiModelProperty(value = "商品id")
    @TableId
    private Integer gid;
    @ApiModelProperty(value = "商家id")
    private Integer mid;
    @ApiModelProperty(value = "商品名字")
    private String gname;
    @ApiModelProperty(value = "商品类型")
    private String gtype;
    @ApiModelProperty(value = "商品价格")
    private Integer gprice;
    @ApiModelProperty(value = "商品库存")
    private Integer gstock;
    @ApiModelProperty(value = "商品销售量")
    private Integer gused;
    @ApiModelProperty(value = "商品剩余")
    private Integer gsurplus;
    @ApiModelProperty(value = "商品状态,0:待审核,1:可销售,2:禁止销售,3:已上架,4:已下架")
    private Integer gstatus;
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime create_time;
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime update_time;}